using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;

namespace Main.AStar
{
    /// <summary>
    /// 在指定时间的对应场景与坐标数据
    /// </summary>
    public class MovementStep
    {
        public string sceneName;
        public int hour;
        public int minute;
        public int second;
        public Vector2Int gridCoordinate;

        public bool CompareIsDiagonal(MovementStep other)
        {
            return gridCoordinate.x != gridCoordinate.x && other.gridCoordinate.y != other.gridCoordinate.y;
        }

        public TimeSpan GetTimeSpan()
        {
            return new TimeSpan(hour, minute, second);

        }
    }
}